import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/home.vue')
  },
  {
    path: '/UniverHome',
    name: 'UniverHome',
    component: () => import('../views/UniverHome.vue')
  },
  {
    path: '/introduction',
    name: 'introduction',
    component: () => import('../views/introduction.vue')
  },
  {
    path: '/question',
    name: 'question',
    component: () => import('../views/question.vue')
  },
  {
    path: '/contactUs',
    name: 'contactUs',
    component: () => import('../views/contactUs.vue')
  },
  {
    path: '/news',
    name: 'news',
    component: () => import('../views/news.vue')
  }, {
    path: '/new/detail',
    name: 'newDetail',
    component: () => import('../views/newDetail.vue')
  },
  {
    path: '/donate',
    name: 'donate',
    component: () => import('../views/donate.vue')
  },
  {
    path: '/donateItem',
    name: 'donateItem',
    component: () => import('../views/donateItem.vue')
  },
  {
    path: '/donateDetail',
    name: 'donateDetail',
    component: () => import('../views/donateDetail.vue')
  },
  // 捐赠

  {
    path: '/certificate',
    name: 'certificate',
    component: () => import('../views/certificate.vue')
  },
  {
    path: '/donateNameList',
    name: 'donateNameList',
    component: () => import('../views/donateNameList.vue')
  },
  {
    path: '/donateWay',
    name: 'donateWay',
    component: () => import('../views/donateWay.vue')
  },
  {
    path: '/statistics',
    name: 'statistics',
    component: () => import('../views/statistics.vue')
  },
  {
    path: '/invoiceList',
    name: 'invoiceList',
    component: () => import(/* webpackPreload: true */ '../views/invoice/list.vue')
  }, {
    path: '/invoiceDetail',
    name: 'invoiceDetail',
    component: () => import(/* webpackPreload: true */ '../views/invoice/detail.vue')
  }, {
    path: '/invoiceForm',
    name: 'invoiceForm',
    component: () => import(/* webpackPreload: true */ '../views/invoice/form.vue')
  }, {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackPreload: true */ '../views/per/login.vue')
  }, {
    path: '/perInfo',
    name: 'perInfo',
    component: () => import(/* webpackPreload: true */ '../views/per/perInfo.vue')
  }, {
    path: '/myDon',
    name: 'myDon',
    component: () => import(/* webpackPreload: true */ '../views/per/myDon.vue')
  }, {
    path: '/donList',
    name: 'donList',
    component: () => import(/* webpackPreload: true */ '../views/per/donList.vue')
  }, {
    path: '/donXm',
    name: 'donXm',
    component: () => import(/* webpackPreload: true */ '../views/per/donXm.vue')
  }, {
    path: '/donCer',
    name: 'donCer',
    component: () => import(/* webpackPreload: true */ '../views/per/donCer.vue')
  }, {
    path: '/donPay',
    name: 'donPay',
    component: () => import(/* webpackPreload: true */ '../views/per/donPay.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: '/wx/',
  routes
})

export default router
